home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
amigaoscd
/
amigapluscd
/
AP-Website
/
news
/
admin
/
update_author.php
< prev
next >
Wrap
PHP Script
|
2002-01-27
|
772b
|
29 lines
<?php
$server = "db04.puretec.de";
$db = "db24905524";
$login = "p343302";
$pass = "90f42902";
$dbwww = mysql_connect($server,$login,$pass);
mysql_select_db($db,$dbwww);
if($short_name=="")
$error = "Eine Abkürzung muss mindestens eingegeben werden!";
$query = "update amigaplusnews_authors set short_name = '$short_name', full_name = '$full_name' where id = $id";
//echo mysql_errno().": ".mysql_error()."<br>";
if(!$error)
{
mysql_query($query,$dbwww);
header("Location: index.php");
}
?>
<html>
<head><title>Fehler</title></head>
<body bgcolor="#66CCFF" text="#000000">
<?php echo $error ?><br>(Weiter mit dem Back-Button des Browsers)
</body>
</html>